GtkContainer *container = GTK_CONTAINER (widget);
GtkContainerPrivate *priv = container->priv;
- if (priv->resize_pending)
- _gtk_container_dequeue_resize_handler (container);
-
if (priv->restyle_pending)
priv->restyle_pending = FALSE;
g_object_unref (container);
}
-void
-_gtk_container_dequeue_resize_handler (GtkContainer *container)
-{
- g_return_if_fail (GTK_IS_CONTAINER (container));
- g_return_if_fail (container->priv->resize_pending);
-
- container->priv->resize_pending = FALSE;
-}
-
/**
* gtk_container_set_resize_mode:
* @container: a #GtkContainer
priv->configure_notify_received = TRUE;
- gtk_widget_queue_resize (widget);
+ gtk_widget_queue_allocate (widget);
gtk_container_queue_resize_handler (GTK_CONTAINER (widget));
return TRUE;
* FIXME: we should also dequeue the pending redraws here, since
* we handle those ourselves upon ->configure_notify_received==TRUE.
*/
- G_GNUC_BEGIN_IGNORE_DEPRECATIONS;
- if (gtk_container_get_resize_mode (container) == GTK_RESIZE_QUEUE)
- {
- gtk_widget_queue_resize_no_redraw (widget);
- _gtk_container_dequeue_resize_handler (container);
- }
- G_GNUC_END_IGNORE_DEPRECATIONS;
}
}
else